import 'package:flutter/material.dart';
import 'package:wheel_of_fortune/utils/utils.dart';

class Button extends StatelessWidget {
  final title;
  final onTap;
  const Button({this.title,this.onTap,Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: this.onTap,
      child: Container(
        child: Stack(
          children: [
            Image.asset('assets/images/candy_btn_bg.png'),
            Positioned(
              left: 0,
              top: 0,
              width: 56,
              height: 57,
              child: Center(
                child: Text(this.title,
                  // strutStyle: StrutStyle(forceStrutHeight: true,height:0.05, leading: 0.9),
                  textAlign: TextAlign.center,
                  style: TextStyle(color: whiteColor, fontSize: 10,fontFamily: 'Avenir Next LT Pro',fontWeight: FontWeight.bold,),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}